home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / misc / toolboxsas.lha / Toolbox / lib / include / Source.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-02-15  |  1.0 KB  |  34 lines

  1. #ifndef xySource
  2. #define xySource
  3.  
  4. /* $Id: Source.h,v 1.0 1992/08/07 14:31:44 grosch rel $ */
  5.  
  6. /* $Log: Source.h,v $
  7.  * Revision 1.0  1992/08/07  14:31:44  grosch
  8.  * Initial revision
  9.  *
  10.  */
  11.  
  12. /* Ich, Doktor Josef Grosch, Informatiker, Juli 1992 */
  13.  
  14.  
  15. int BeginSource(char *FileName);
  16. /* BeginSource is called from the scanner to open files. */
  17. /* If not called input is read form standard input.      */
  18.  
  19.  
  20. int GetLine(int File, char *Buffer, int Size);
  21. /* GetLine is called to fill a buffer starting at address 'Buffer'   */
  22. /* with a block of maximal 'Size' characters. Lines are terminated   */
  23. /* by newline characters (ASCII = 0xa). GetLine returns the number   */
  24. /* of characters transferred. Reasonable block sizes are between 128 */
  25. /* and 2048 or the length of a line. Smaller block sizes -           */
  26. /* especially block size 1 - will drastically slow down the scanner. */
  27.  
  28.  
  29. void CloseSource(int File);
  30. /* CloseSource is called from the scanner at end of file respectively */
  31. /* at end of input. It can be used to close files.                    */
  32.  
  33. #endif
  34.